<extend name="Base/common"/>



<block name="body">
    <div class="index-content1" style="background-color: #ffffff;width: 1100px;padding: 20px;">

        <div class="breadcrumb" style="color: #999999"><span style="color: #E62D2D">(修改)</span>&nbsp;请注意红色星号部分为必填信息，否则将无法发布</div>
        <form class="form-horizontal ajax-form" role="form" method="post"  action="{:U('Usercenter/House/save_edit_chuzu')}">
         <input type="hidden" name="id" value="{$result['id']}">





            <div class="form-group">
                <label for="style" class="col-sm-2 control-label" style="margin-right: 15px;">
                    <snap style="color: #ff0000">*</snap>
                    出租方式：</label>

                <label class="radio-inline">
                    <input  type="radio" name="style" id="type1" value="整租" <if condition="$result['style'] eq '整租'">checked</if> >
                    整租
                </label>
                <label class="radio-inline">
                    <input type="radio" name="style" id="type2" value="合租" <if condition="$result['style'] eq '合租'">checked</if>>
                    合租
                </label>
            </div>

            <div class="form-group">
                <label for="position" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    区地址：</label>

                <div class="col-lg-2">
                    <div class="input-group">
                        <input type="text" name="position" id="position" class="form-control" value='{$result.position}'>

                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">区域
                                <span class="caret"></span></button>
                            <ul class="dropdown-menu pull-right">
                                <li><a href="#" onclick="set_position('江干区');">江干区</a></li>
                                <li><a href="#" onclick="set_position('西湖区');">西湖区</a></li>
                                <li><a href="#" onclick="set_position('滨江区');">滨江区</a></li>
                                <li><a href="#" onclick="set_position('拱墅区');">拱墅区</a></li>
                                <li><a href="#" onclick="set_position('上城区');">上城区</a></li>
                                <li><a href="#" onclick="set_position('下城区');">下城区</a></li>
                                <li><a href="#" onclick="set_position('余杭区');">余杭区</a></li>
                                <li><a href="#" onclick="set_position('富阳区');">富阳区</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>


            <div class="form-group">
                <label for="village" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    小区：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="village" id="village" value='{$result.village}'>
                </div>
            </div>
            <div class="form-group">
                <label for="type" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    户型：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="type" id="type" value='{$result.type}'>
                </div>
            </div>

            <div class="form-group">
                <label for="area" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    面积：</label>

                <div class="col-sm-2">
                    <input type="text" class="form-control" name="area" id="area" value='{$result.area}'{:only(2)}>
                </div>
                <span class="pull-left" style="line-height: 36px;">平方米</span>
            </div>

            <div class="form-group">
                <label for="price" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    租金：</label>

                <div class="col-sm-2 pull-left">
                    <input type="text" class="form-control " name="price" id="price" value='{$result.price}'{:only(2)}>
                </div>
                <span class="pull-left" style="line-height: 36px;">元/月</span>
            </div>

            <div class="form-group">
                <label for="Orientation" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    朝向：</label>

                <div class="col-lg-2">
                    <div class="input-group">
                        <input type="text" class="form-control" name="orientation" id="orientation" value='{$result.orientation}'>

                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">方向
                                <span class="caret"></span></button>
                            <ul class="dropdown-menu pull-right">
                                <li><a href="#" onclick="set_orientation('朝东');">朝东</a></li>
                                <li><a href="#" onclick="set_orientation('朝南');">朝南</a></li>
                                <li><a href="#" onclick="set_orientation('朝西');">朝西</a></li>
                                <li><a href="#" onclick="set_orientation('朝北');">朝北</a></li>


                            </ul>
                        </div>

                    </div>

                </div>
            </div>

         <div class="form-group">
             <label for="mold" class="col-sm-2 control-label">
                 <snap style="color: #ff0000">*</snap>
                 房屋类型：</label>

             <div class="col-lg-2">
                 <div class="input-group">
                     <input type="text" class="form-control" name="mold" id="mold" value='{$result.mold}'>

                     <div class="input-group-btn">
                         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">方向
                             <span class="caret"></span></button>
                         <ul class="dropdown-menu pull-right">
                             <li><a href="#" onclick="set_mold('普通住宅');">普通住宅</a></li>
                             <li><a href="#" onclick="set_mold('公寓');">公寓</a></li>
                             <li><a href="#" onclick="set_mold('别墅');">别墅</a></li>
                             <li><a href="#" onclick="set_mold('平房');">平房</a></li>
                             <li><a href="#" onclick="set_mold('其他');">其他</a></li>


                         </ul>
                     </div>

                 </div>

             </div>
         </div>


         <div class="form-group">
                <label for="configure" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    配置：</label>

                <div class="col-sm-6">
                    <input type="text" class="form-control " name="configure" id="configure" value="{$result.configure}">
                </div>

            </div>

            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    标题：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="title" id="title" value='{$result.title}'>
                </div>
            </div>

            <div class="form-group">
                <label for="description" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    描述：</label>

                <div class="col-sm-6">
                    <textarea class="form-control" rows="5" id="description" name="description">{$result.description}</textarea>

                </div>
            </div>


            <div class="form-group">
                <label for="nickname" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    联系人：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="nickname" id="nickname"  value='{$result.nickname}'>
                </div>



                <span style="line-height: 33px;color: red;font-size: 14px;">请务必填写真实姓名，方便与您联系</span>

            </div>

            <div class="form-group">
                <label for="phone" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    联系电话：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" id="phone" name="phone"  value='{$result.phone}'{:only(1)}>
                </div>

                <span style="line-height: 33px;color:#E62D2D;font-size: 14px;">请核对号码，方便与您联系</span>
            </div>


            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary" style="height: 40px;font-size:18px;">确认修改



                    </button>
                </div>
            </div>


        </form>


    </div>


    <script>
        function set_position(content) {
            $('#position').val(content);
        }
        function set_orientation(content) {
            $('#orientation').val(content);
        }
        function set_mold(content){

            $('#mold').val(content);

        }

        /*$(function(){

        $(function(){

            var frame1 = document.getElementById("img_up");
            alert(frame1);

            var frameA = document.frames["img_up"];
            if (document.all) {//IE

                childFrameDoc = frameA.document; /*//*** 如果是frame1,就取不到FrameA.aspx页面里的input ***

                childFrameDoc = frameA.document; //*** 如果是frame1,就取不到FrameA.aspx页面里的input ***

            } else {//Firefox
                childFrameDoc = frameA.contentDocument;
            }
            alert(childFrameDoc.body.innerHTML);

            var childTxt = childFrameDoc.getElementById("aaa");


            alert(childTxt == childTxtByName[0]); //true
            alert(childTxt.value); //jeff wong
            alert(childTxtByName[0].value); // jeff wong
            alert($("#img_up").contents().find("#aaa").val());

        })

*/




    </script>

</block>



























